package com.dapeis.web.wx.controller;

import javax.servlet.http.HttpServletRequest;

import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

import com.google.gson.JsonElement;

/**
 * 发送短信 Title:ISMSController.java ISMSController Description:
 * 
 * @author yuanyong
 * @date 2017年5月4日 下午6:22:15 Email: hzyuanyong@126.com
 *
 */

public interface ISMSController {
    /**
     * /{sendChannel}/send 发送渠道短信
     * 
     * @param sendChannel
     *            包含
     * @param contact
     *            发送的手机号
     * @param request
     * @return
     */
    @RequestMapping(value = "/{channel}/send", method = RequestMethod.POST)
    public @ResponseBody JsonElement send(@PathVariable String channel,
	    @RequestParam String contact, HttpServletRequest request);
}
